package com.shsxt.crm.service;

import java.util.List;
import java.util.Map;

import com.shsxt.common.util.Result;
import com.shsxt.crm.model.YgCustomer;
import com.shsxt.crm.model.YgDataDic;

/**
 * 客户管理服务
 * 
 * @author Mr.YongGan.Zhang
 *
 */
public interface ICustomerService {

	/**
	 * 查询客户信息  
	 * @param id  客户id
	 * @return
	 */
	public YgCustomer get(Integer id);

	/**
	 * 查询客户信息
	 * 
	 * @param ygCustomer
	 * @return
	 */
	public Map<String, Object> queryCustomersByParams(YgCustomer ygCustomer);

	public List<YgCustomer> queryAllCustomers();

	/**
	 * 查询客户等级
	 * 
	 * @param dataDicName
	 * @return
	 */
	public List<YgDataDic> queryDataDicValueByDataDicName(String dataDicName);

	/**
	 * 添加 客户信息
	 * 
	 * @param customer
	 * @return
	 */
	public Result insertCustomerInfo(YgCustomer customer);

	/**
	 * 更新客户信息
	 * 
	 * @param customer
	 * @return
	 */
	public Result updateCustomerInfo(YgCustomer customer);

	/**
	 * 批量删除
	 * 
	 * @param ids
	 * @return
	 */
	public Result deleteCustomerInfo(Integer[] ids);

}
